﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using jqGrid.Models.ICDA;

namespace ICDA.DataModels.ICDA
{
    public interface IProductsRepository
    {
        int GetProductsCount(string filterExpression);

        IQueryable<Product> GetProducts(string filterExpression, string sortExpression, string sortDirection, int pageIndex, int pageSize, int pagesCount);
        
        Product GetProduct(int productId);
        
        bool DeleteProduct(int productId);
        
        bool AddProduct(Product newProduct);

        void SubmitChanges();
    }
}